import { Moment } from 'moment';

export interface IMessageItem {
    id?: number;
    topicId?: number;
    fromUserId?: number;
    toUserId?: number;
    content?: string;
    createdDate?: Moment;
}

export class MessageItem implements IMessageItem {
    constructor(
        public id?: number,
        public topicId?: number,
        public fromUserId?: number,
        public toUserId?: number,
        public content?: string,
        public createdDate?: Moment
    ) {}
}
